﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true" Inherits="AdminNewsCategoryIU" Title="Quản trị Danh Mục Sản Phẩm" Codebehind="AdminNewsCategoryIU.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Label ID="lbAdminNewCategory" runat="server" Text="CẬP NHẬT DANH MỤC TIN TỨC"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                          <asp:Label ID="lbMessage" runat="server"></asp:Label>
                        </span>
                         <span style="color:Blue; font-size:14px">
                           
                            <asp:Literal ID="ltrMessageSuccess" runat="server"></asp:Literal>
                        </span>
                        <asp:ValidationSummary ID="NewsCategoryValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="NewsCategoryGroup" />
                    </td>
                </tr>
                
                <tr>
                    <td align="right">
                        <asp:Label ID="lbTenDanhMucTinTucVN" runat="server">Tên Danh Mục Tin Tức (VN):</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTenDanhMucTinTucVN" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTenDanhMucTinTucVN" runat="server" ControlToValidate="txtTenDanhMucTinTucVN"
                            ValidationGroup="NewsCategoryGroup" CssClass="failureNotification" ErrorMessage="Tên chuyên mục VN không được để trống."
                            ToolTip="Tên chuyên mục VN không được để trống." Text="*" />
                         <asp:Label  ID="lbtrangthai" runat="server"   Visible= "false"></asp:Label>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbTenDanhMucTinTucOther" runat="server">Tên Danh Mục Tin Tức (Other):</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtTenDanhMucTinTucOther" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rvTenDanhMucTinTucOther" runat="server" ValidationGroup="NewsCategoryGroup"
                            ControlToValidate="txtTenDanhMucTinTucOther" CssClass="failureNotification" ErrorMessage="Tên chuyên mục Other không được để trống."
                            ToolTip="Tên chuyên mục Other không được để trống." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbChuyenMucCha" runat="server">Chuyên Mục Cha:</asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList ID="ddlChuyenMucCha" runat="server"  >
                        </asp:DropDownList>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbSapXep" runat="server">Sắp Xếp:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtSapXep" runat="server" CssClass="textEntry">1</asp:TextBox>
                    </th>
                </tr>
                 <tr>
                    <td align="right">
                        <asp:Label ID="Label1" runat="server">Ảnh đại diện:</asp:Label>
                    </td>
                    <th>
                        
                        <asp:FileUpload ID="fulIcon" runat="server" />
                        
                    </th>
                </tr>
                 <tr>
                    <td align="right">
                       
                    </td>
                    <th>                                                                        
                        <asp:Image ID="ImagIcon" Width="50px" runat="server" />                                                                        
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="NewsCategoryGroup"
                            OnClick="btnSave_Click" CssClass="btn_action"/>
                        <asp:Button ID="btnApply" runat="server" Text="Áp dụng" 
                            onclick="btnApply_Click" CssClass="btn_action"/>
                        <asp:Button ID="btnBack" runat="server" Text="Quay trở lại danh sách" OnClick="btnBack_Click" CssClass="btn_action"/>
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
